package com.centit.airplaneinfo_db.po;

import com.centit.airplanebaseinfo.po.AirplaneBaseinfo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "DB_RECORD")
public class DbRecord implements java.io.Serializable{
    private static final long serialVersionUID =  1L;

    /**
     * REC_ID【主键】 REC_ID【主键】
     */
    @Id
    @Column(name = "REC_ID")
    private String recId;


    @Column(name = "RECORD_TITLE")
    private String  recordTitle;


    @Column(name = "CREATE_USER")
    private String  createUser;


    @Column(name = "CREATE_TIME")
    private Date createTime;


    @Column(name = "RECORD_TYPE")
    private String recordType;


    @Column(name = "DATA_STATE")
    private String dataState;


    @Column(name = "A_DJ_BHS")
    public String aDjBhs;


    @Column(name = "A_DJ_HS")
    public String aDjHs;


    @Column(name = "ZZJ_DJ_BHS")
    private String zzjDjBhs;

    @Column(name = "ZZJ_DJ_HS")
    private String zzjDjHs;


    public DbRecord() {
    }

    public DbRecord(String recId, String recordTitle, String createUser, String recordType,
                    String aDjBhs, String aDjHs, String zzjDjBhs, String zzjDjHs) {
        this.recId = recId;
        this.recordTitle = recordTitle;
        this.createUser = createUser;
        this.recordType = recordType;
        this.aDjBhs = aDjBhs;
        this.aDjHs = aDjHs;
        this.zzjDjBhs = zzjDjBhs;
        this.zzjDjHs = zzjDjHs;

        this.createTime=new Date();
        this.dataState="1";
    }
    public DbRecord copyNotNullProperty(DbRecord other){
        this.aDjBhs=other.aDjBhs;
        this.aDjHs=other.aDjHs;
        this.zzjDjBhs=other.zzjDjBhs;
        this.zzjDjHs=other.zzjDjHs;
        return this;
    }

    public String getRecId() {
        return recId;
    }

    public void setRecId(String recId) {
        this.recId = recId;
    }

    public String getRecordTitle() {
        return recordTitle;
    }

    public void setRecordTitle(String recordTitle) {
        this.recordTitle = recordTitle;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getRecordType() {
        return recordType;
    }

    public void setRecordType(String recordType) {
        this.recordType = recordType;
    }

    public String getDataState() {
        return dataState;
    }

    public void setDataState(String dataState) {
        this.dataState = dataState;
    }


    public String getaDjBhs() {
        return aDjBhs;
    }

    public void setaDjBhs(String aDjBhs) {
        this.aDjBhs = aDjBhs;
    }

    public String getaDjHs() {
        return aDjHs;
    }

    public void setaDjHs(String aDjHs) {
        this.aDjHs = aDjHs;
    }

    public String getZzjDjBhs() {
        return zzjDjBhs;
    }

    public void setZzjDjBhs(String zzjDjBhs) {
        this.zzjDjBhs = zzjDjBhs;
    }

    public String getZzjDjHs() {
        return zzjDjHs;
    }

    public void setZzjDjHs(String zzjDjHs) {
        this.zzjDjHs = zzjDjHs;
    }
}
